<?php 
defined('_JEXEC') or die;

// disable core styles to avoid bs conflict 
OC_Util::$core_styles = array();

?>

<?php if(0): ?>
<div id="joblinks" class="highsearch_eachbox medium clearfix">
   <label class="key">职位：</label>
   <div class="resumesearch_ul clearfix">
      <div style="float:left; position:relative; padding-right:100px;">
      <ul class="links <?=($_['showmorejob'] ? 'showmorejob' : '');?>">
         <?php 
         list($href, $selected) = PResumesHelper::getSearchItemHref($_['searchurl'], 'jobid', 'all');
         ?>
         <li <?=($selected ? 'class="cur_selected"'  : '')?>><a href="<?=$href?>">全部</a></li>
         <?php 
         if (!empty($_['jobList']) && $_['jobpos']) {
            foreach ($_['jobList'] as $job) {
               list($href, $selected) = PResumesHelper::getSearchItemHref($_['searchurl'], 'jobid', $job['id']);
               if ($selected) {
         ?>
         <li class="line">|</li>
         <li <?=($selected ? 'class="cur_selected"'  : '')?>><a href="<?=$href?>"><?=$job['job_title']?></a></li>
         <?php
               } 
            }
         }
         ?>
         <?php 
         if (!empty($_['jobList'])) {
            foreach ($_['jobList'] as $job) {
               list($href, $selected) = PResumesHelper::getSearchItemHref($_['searchurl'], 'jobid', $job['id']);
               if ($_['jobpos']) {
                  if (!$selected) {
         ?>
         <li class="line">|</li>
         <li <?=($selected ? 'class="cur_selected"'  : '')?>><a href="<?=$href?>"><?=$job['job_title']?></a></li>
         <?php
                  }
               } else {
         ?>
         <li class="line">|</li>
         <li <?=($selected ? 'class="cur_selected"'  : '')?>><a href="<?=$href?>"><?=$job['job_title']?></a></li>
         <?php
               }
            }
         }
         ?>
      </ul>
      <!-- 
      <ul class="morelink <?=($_['showmorejob'] ? '' : 'hide');?>">
      </ul>
       -->
       <div class="select_more" style="display: none;"><span><?=($_['showmorejob'] ? '收起' : '更多')?></span><i class="<?=($_['showmorejob'] ? 'up' : '')?>"></i></div>
       </div>
   </div>
</div>
<?php endif; ?>
<div class="highsearch_eachbox medium clearfix">
   <label class="key">匹配度：</label>
   <ul>
      <?php 
      list($href, $selected) = PResumesHelper::getSearchItemHref($_['searchurl'], 'matchresult', 'all');
      ?>
      <li <?=($selected ? 'class="cur_selected"'  : '')?>><a href="<?=$href?>">全部</a></li>
      <?php
      $matchResultConfig = array(90, 75, 60, 50);
      foreach ($matchResultConfig as $matchValue) {
         list($href, $selected) = PResumesHelper::getSearchItemHref($_['searchurl'], 'matchresult', $matchValue);
      ?>
      <li class="line">|</li>
      <li <?=($selected ? 'class="cur_selected"'  : '')?>><a href="<?=$href?>"><?=$matchValue?>%以上</a></li>
      <?php
      }
      ?>
   </ul>
</div>
<div class="highsearch_eachbox medium clearfix">
   <label class="key">工作经验：</label>
   <ul>
      <?php 
      list($href, $selected) = PResumesHelper::getSearchItemHref($_['searchurl'], 'workexp', 'all');
      ?>
      <li <?=($selected ? 'class="cur_selected"'  : '')?>><a href="<?=$href?>">全部</a></li>
      <?php
      $workexpConfig = array(1, 2, 3, 5, 10);
      foreach ($workexpConfig as $years) {
         list($href, $selected) = PResumesHelper::getSearchItemHref($_['searchurl'], 'workexp', $years);
      ?>
      <li class="line">|</li>
      <li <?=($selected ? 'class="cur_selected"'  : '')?>><a href="<?=$href?>"><?=$years?>年以上</a></li>
      <?php
      }
      ?>
   </ul>
</div>
<div class="highsearch_eachbox medium clearfix">
   <label class="key">学历：</label>
   <ul>
      <?php 
      list($href, $selected) = PResumesHelper::getSearchItemHref($_['searchurl'], 'degree', 'all');
      ?>
      <li <?=($selected ? 'class="cur_selected"'  : '')?>><a href="<?=$href?>">全部</a></li>
      <?php
      $degreeConfig = array(
               'senior_middle' => '高中/中专',
               'college' => '大专',
               'bachelor' => '本科',
               'master' => '硕士',
      );
      foreach ($degreeConfig as $degreeAlias => $degreeName) {
         list($href, $selected) = PResumesHelper::getSearchItemHref($_['searchurl'], 'degree', $degreeAlias);
      ?>
      <li class="line">|</li>
      <li <?=($selected ? 'class="cur_selected"'  : '')?>><a href="<?=$href?>"><?=$degreeName?>以上</a></li>
      <?php
      }
      ?>
   </ul>
</div>
<div class="highsearch_eachbox medium clearfix">
   <label class="key">申请时间：</label>
   <ul>
      <?php 
      list($href, $selected) = PResumesHelper::getSearchItemHref($_['searchurl'], 'time', 'all');
      ?>
      <li <?=($selected ? 'class="cur_selected"'  : '')?>><a href="<?=$href?>">全部</a></li>
      <?php
      $timeConfig = array(
               'today' => '今天',
               '1d' => '1天以内',
               '3d' => '3天以内',
               '1w' => '1周以内',
               '2w' => '2周以内',
               '1m' => '1月以内',
               '3m' => '3月以内'
      );
      foreach ($timeConfig as $timeAlias => $timeName) {
         list($href, $selected) = PResumesHelper::getSearchItemHref($_['searchurl'], 'time', $timeAlias);
      ?>
      <li class="line">|</li>
      <li <?=($selected ? 'class="cur_selected"'  : '')?>><a href="<?=$href?>"><?=$timeName?></a></li>
      <?php
      }
      ?>
   </ul>
</div>
<div class="highsearch_eachbox medium clearfix">
   <label class="key">年龄：</label>
   <ul style="width:380px;">
      <?php 
      list($href, $selected) = PResumesHelper::getSearchItemHref($_['searchurl'], 'age', 'all');
      ?>
      <li <?=($selected ? 'class="cur_selected"'  : '')?>><a href="<?=$href?>">全部</a></li>
      <?php
      $ageConfig = array(25, 30, 35, 40, 50);
      foreach ($ageConfig as $age) {
         list($href, $selected) = PResumesHelper::getSearchItemHref($_['searchurl'], 'age', $age);
      ?>
      <li class="line">|</li>
      <li <?=($selected ? 'class="cur_selected"'  : '')?>><a href="<?=$href?>"><?=$age?>岁以下</a></li>
      <?php
      }
      ?>
   </ul>
   
   <label class="key">性别：</label>
   <ul>
      <?php 
      list($href, $selected) = PResumesHelper::getSearchItemHref($_['searchurl'], 'sex', 'all');
      ?>
      <li <?=($selected ? 'class="cur_selected"'  : '')?>><a href="<?=$href?>">全部</a></li>
      <?php
      $sexConfig = array(
               'M' => '男',
               'F' => '女'
      );
      foreach ($sexConfig as $sexAlias => $sexName) {
         list($href, $selected) = PResumesHelper::getSearchItemHref($_['searchurl'], 'sex', $sexAlias);
      ?>
      <li class="line">|</li>
      <li <?=($selected ? 'class="cur_selected"'  : '')?>><a href="<?=$href?>"><?=$sexName?></a></li>
      <?php
      }
      ?>
   </ul>
</div>
<div class="highsearch_eachbox medium clearfix">
   <label class="key">来源：</label>
   <ul>
      <?php 
      list($href, $selected) = PResumesHelper::getSearchItemHref($_['searchurl'], 'source', 'all');
      ?>
      <li <?=($selected ? 'class="cur_selected"'  : '')?>><a href="<?=$href?>">全部</a></li>
      <?php 
      $soureConfig = array(
                   'upload' => '枇杷派',
                   '51job'   => '前程无忧',
                   'zhilian' => '智联招聘',
                   'lagou' => '拉勾',
                   'jiancai' => '建筑英才'  
      );
      foreach ($soureConfig as $sourceAlias => $sourceName) {
         list($href, $selected) = PResumesHelper::getSearchItemHref($_['searchurl'], 'source', $sourceAlias);
      ?>
      <li class="line">|</li>
      <li <?=($selected ? 'class="cur_selected"'  : '')?>><a href="<?=$href?>"><?=$sourceName?></a></li>
      <?php
      }
      ?>
   </ul>
</div>
<div class="click_slideup" style="display:none;"></div>